package com.xzp.groupdervicesdemo.mapper;

import com.xzp.groupdervicesdemo.entity.Group;
import org.apache.ibatis.annotations.Insert;

/**
 * mybatis接口类
 *
 * @author briarbear
 * @blog http://briarbear.github.io
 * @create 2019-07-24-21:57
 */
public interface GroupMapper {


    @Insert("insert into rel_group(group_name,created_date)" +
            " values(#{groupName},#{createdDate})")
//    @Insert({"<script>",
//            "insert into rel_group",
//            "(group_name)"
//    })
    int createGroup(Group group);
}
